home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / prg_casm / snip9611.zip / SOUND.C < prev    next >
C/C++ Source or Header  |  1996-11-24  |  679b  |  34 lines

  1. /* +++Date last modified: 02-Sep-1996 */
  2.  
  3. /*
  4. **  SOUND.C
  5. **
  6. **  Original Copyright 1988-1991 by Bob Stout as part of
  7. **  the MicroFirm Function Library (MFL)
  8. **
  9. **  The user is granted a free limited license to use this source file
  10. **  to create royalty-free programs, subject to the terms of the
  11. **  license restrictions specified in the LICENSE.MFL file.
  12. */
  13.  
  14. #include "pchwio.h"
  15. #include "sound.h"
  16.  
  17. void soundon(void)
  18. {
  19.       short value;
  20.  
  21.       value = inp(SCNTRL);
  22.       value |= SOUNDON;
  23.       outp(SCNTRL, value);
  24. }
  25.  
  26. void soundoff(void)
  27. {
  28.       short value;
  29.  
  30.       value = inp(SCNTRL);
  31.       value &= SOUNDOFF;
  32.       outp(SCNTRL, value);
  33. }
  34.